home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Applications / PICSee Dust 1.01 / Quaternary Source / Class_ProgressWindow.h < prev    next >
Text File  |  1995-11-13  |  967b  |  35 lines

  1. #ifndef CLASS_PROGRESSWINDOW_H_
  2. #define CLASS_PROGRESSWINDOW_H_
  3.  
  4. #ifndef CLASS_PROGRESSBAR_H_
  5. #include "Class_ProgressBar.h"
  6. #endif
  7.  
  8. typedef class ProgressWindow {
  9.     public:
  10.         ProgressWindow(GDHandle targetMonitor, short maxValue);
  11.         ~ProgressWindow();
  12.  
  13.         virtual void Update();
  14.         virtual void Increment();
  15.         virtual void IncrementBy(short stepValue);
  16.         virtual void IncrementTo(short curValue);
  17.         virtual void SetPrimaryMessage(Str255 message);
  18.         virtual void SetSecondaryMessage(Str255 message);
  19.         
  20.         virtual WindowRef GetWindow() { return(this->progressWindow); }
  21.         virtual void SetReadDelay(unsigned short readDelay) { this->readDelay = readDelay; }
  22.         virtual void FinishProgress();
  23.  
  24.     protected:
  25.         ProgressBarPtr progressBar;
  26.         WindowPtr progressWindow;
  27.         Str255 primaryStr;
  28.         Str255 secondaryStr;
  29.         unsigned short readDelay;
  30.         
  31.         void DrawPrimaryString();
  32.         void DrawSecondaryString();
  33. } *ProgressWindowPtr, **ProgressWindowHdl;
  34.  
  35. #endif // CLASS_PROGRESSWINDOW_H_